import { createApp } from 'vue';
import App from './App.vue';
import "amfe-flexible";
import { createPinia } from 'pinia';
// pinia持久化缓存插件
import piniaPersist from 'pinia-plugin-persist';
import router from './router';
import NutUI from "@nutui/nutui";
import "@nutui/nutui/dist/style.css";
import { IconFont } from '@nutui/icons-vue';
import '@nutui/icons-vue/dist/style_iconfont.css';

const app = createApp(App);

const pinia = createPinia();
pinia.use(piniaPersist);
app.use(router);
app.use(NutUI);
app.use(IconFont);
app.use(pinia);
app.mount('#app');
